package top.caoayu.service.impl;

import org.springframework.stereotype.Service;

/**
 * @Author: caoxinyu
 * @Date: 2023/8/25-15:01
 */
@Service
public class AopDemoServiceImpl {
    public void method1(){
        System.out.println("exec method1");
    }
    public String method2(){
        System.out.println("exec method2");
        return this.getClass().getName();
    }
    public void method3() throws Exception{
        System.out.println("exec method3");
        throw new Exception("throws method3");
    }
}
